package com.bjg.wcl.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备
 */
@Data
@TableName(value = "fmcs_device")
public class FmcsDevice implements Serializable,Comparable {
    @TableField(value = "id")
    @TableId(value = "id")
    private String id;//设备ID
    @TableField(value = "fmcs_device_name")
    private String fmcsDeviceName;//设备名称
    @TableField(value = "fmcs_nick_name")
    private String fmcsNickName;//别名：回路名称
    @TableField(value = "fmcs_device_code")
    private String fmcsDeviceCode;//设备编号，可前端查询使用
    @TableField(value = "model_name")
    private String modelName;//模型名称
    @TableField(value = "client")
    private String client;
    @TableField(value = "create_time")
    private Date createTime;//创建时间
    @TableField(value = "update_time")
    private Date updateTime;//修改时间
    @TableField(value = "deleted")
    private int deleted;//已删除标记(1,已删除;0,正常)

    @Override
    public int compareTo(Object o) {
        return this.id.compareTo(((FmcsDevice) o).getId());
    }

}
